package com.bosssoft.service;

import java.math.BigDecimal;
import java.util.List;
import java.util.Map;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.bosssoft.entity.po.FibIncomeBudgetPO;
import com.baomidou.mybatisplus.extension.service.IService;
import com.bosssoft.entity.vo.FibIncomeBudgetVO;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author Li kexi
 * Created on 2021/8/19.15:46
 */
public interface FibIncomeBudgetService extends IService<FibIncomeBudgetPO> {


    int updateBatch(List<FibIncomeBudgetPO> list);

    int updateBatchSelective(List<FibIncomeBudgetPO> list);

    int batchInsert(List<FibIncomeBudgetPO> list);

    int insertOrUpdate(FibIncomeBudgetPO record);

    int insertOrUpdateSelective(FibIncomeBudgetPO record);


    int changeStatus(Long deptId, Integer year, Integer nextStatus);

    FibIncomeBudgetVO selectIncomeBudgetReport(String deptName, Integer year);

    Map<String, BigDecimal> incomeSheet(Integer status, Integer year);

    Page<FibIncomeBudgetVO> queryAllIncome(Integer current, Integer size);

    List<Page<FibIncomeBudgetPO>> queryMyIncomeAndChildren(Integer current, Integer size, Long deptId);

    Long updateByDetail(Long deptId, Integer year, String incomeType, BigDecimal amount);
}


